import request from '@/utils/request'

// 查询维护单列表
export function listActMaintainOrder(query) {
  return request({
    url: '/activiti/actMaintainOrder/list',
    method: 'get',
    params: query
  })
}

// 查询维护单列表
export function listActMaintainOrderTableData(query) {
  return request({
    url: '/activiti/actMaintainOrder/tableData/list',
    method: 'get',
    params: query
  })
}

// 查询维护单详细
export function getActMaintainOrder(id) {
  return request({
    url: '/activiti/actMaintainOrder/' + id,
    method: 'get'
  })
}

// 查询维护单详细
export function getActMaintainOrderCols(id) {
  return request({
    url: '/activiti/actMaintainOrder/cols/' + id,
    method: 'get'
  })
}

// 新增维护单
export function addActMaintainOrder(data) {
  return request({
    url: '/activiti/actMaintainOrder',
    method: 'post',
    data: data
  })
}

// 修改维护单
export function updateActMaintainOrder(data) {
  return request({
    url: '/activiti/actMaintainOrder',
    method: 'put',
    data: data
  })
}

// 删除维护单
export function delActMaintainOrder(id) {
  return request({
    url: '/activiti/actMaintainOrder/' + id,
    method: 'delete'
  })
}
